package com.deductive.domain.wq;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 医疗救治机构表
 * @TableName disposition_wq_yljzjg
 */
@TableName(value ="disposition_wq_yljzjg")
@Data
public class DispositionWqYljzjg implements Serializable {
    /**
     * id
     */
    @TableId(value = "id",type= IdType.AUTO)
    private Integer id;

    /**
     * 机构编号
     */
    @TableField(value = "institution_number")
    private String institutionNumber;

    /**
     * 机构类别
     */
    @TableField(value = "institution_category")
    private String institutionCategory;

    /**
     * 机构等级
     */
    @TableField(value = "institution_level")
    private String institutionLevel;

    /**
     * 科室设置
     */
    @TableField(value = "department_setup")
    private String departmentSetup;

    /**
     * 床位数
     */
    @TableField(value = "bed_number")
    private String bedNumber;

    /**
     * 手术床数
     */
    @TableField(value = "surgery_number")
    private String surgeryNumber;

    /**
     * 昼晚手术能力
     */
    @TableField(value = "zyssnl")
    private String zyssnl;

    /**
     * 重症持续监护能力
     */
    @TableField(value = "zzcxjhnl")
    private String zzcxjhnl;

    /**
     * 留治能力
     */
    @TableField(value = "zlnl")
    private String zlnl;

    /**
     * 战救药材保障能力
     */
    @TableField(value = "zjycbznl")
    private String zjycbznl;

    /**
     * 战时常备药材保障能力
     */
    @TableField(value = "zscbycbznl")
    private String zscbycbznl;

    /**
     * 血液保障能力
     */
    @TableField(value = "xybznl")
    private String xybznl;

    /**
     * 救护区
     */
    @TableField(value = "rescue_area")
    private String rescueArea;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DispositionWqYljzjg other = (DispositionWqYljzjg) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getInstitutionNumber() == null ? other.getInstitutionNumber() == null : this.getInstitutionNumber().equals(other.getInstitutionNumber()))
            && (this.getInstitutionCategory() == null ? other.getInstitutionCategory() == null : this.getInstitutionCategory().equals(other.getInstitutionCategory()))
            && (this.getInstitutionLevel() == null ? other.getInstitutionLevel() == null : this.getInstitutionLevel().equals(other.getInstitutionLevel()))
            && (this.getDepartmentSetup() == null ? other.getDepartmentSetup() == null : this.getDepartmentSetup().equals(other.getDepartmentSetup()))
            && (this.getBedNumber() == null ? other.getBedNumber() == null : this.getBedNumber().equals(other.getBedNumber()))
            && (this.getSurgeryNumber() == null ? other.getSurgeryNumber() == null : this.getSurgeryNumber().equals(other.getSurgeryNumber()))
            && (this.getZyssnl() == null ? other.getZyssnl() == null : this.getZyssnl().equals(other.getZyssnl()))
            && (this.getZzcxjhnl() == null ? other.getZzcxjhnl() == null : this.getZzcxjhnl().equals(other.getZzcxjhnl()))
            && (this.getZlnl() == null ? other.getZlnl() == null : this.getZlnl().equals(other.getZlnl()))
            && (this.getZjycbznl() == null ? other.getZjycbznl() == null : this.getZjycbznl().equals(other.getZjycbznl()))
            && (this.getZscbycbznl() == null ? other.getZscbycbznl() == null : this.getZscbycbznl().equals(other.getZscbycbznl()))
            && (this.getXybznl() == null ? other.getXybznl() == null : this.getXybznl().equals(other.getXybznl()))
            && (this.getRescueArea() == null ? other.getRescueArea() == null : this.getRescueArea().equals(other.getRescueArea()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getInstitutionNumber() == null) ? 0 : getInstitutionNumber().hashCode());
        result = prime * result + ((getInstitutionCategory() == null) ? 0 : getInstitutionCategory().hashCode());
        result = prime * result + ((getInstitutionLevel() == null) ? 0 : getInstitutionLevel().hashCode());
        result = prime * result + ((getDepartmentSetup() == null) ? 0 : getDepartmentSetup().hashCode());
        result = prime * result + ((getBedNumber() == null) ? 0 : getBedNumber().hashCode());
        result = prime * result + ((getSurgeryNumber() == null) ? 0 : getSurgeryNumber().hashCode());
        result = prime * result + ((getZyssnl() == null) ? 0 : getZyssnl().hashCode());
        result = prime * result + ((getZzcxjhnl() == null) ? 0 : getZzcxjhnl().hashCode());
        result = prime * result + ((getZlnl() == null) ? 0 : getZlnl().hashCode());
        result = prime * result + ((getZjycbznl() == null) ? 0 : getZjycbznl().hashCode());
        result = prime * result + ((getZscbycbznl() == null) ? 0 : getZscbycbznl().hashCode());
        result = prime * result + ((getXybznl() == null) ? 0 : getXybznl().hashCode());
        result = prime * result + ((getRescueArea() == null) ? 0 : getRescueArea().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", institutionNumber=").append(institutionNumber);
        sb.append(", institutionCategory=").append(institutionCategory);
        sb.append(", institutionLevel=").append(institutionLevel);
        sb.append(", departmentSetup=").append(departmentSetup);
        sb.append(", bedNumber=").append(bedNumber);
        sb.append(", surgeryNumber=").append(surgeryNumber);
        sb.append(", zyssnl=").append(zyssnl);
        sb.append(", zzcxjhnl=").append(zzcxjhnl);
        sb.append(", zlnl=").append(zlnl);
        sb.append(", zjycbznl=").append(zjycbznl);
        sb.append(", zscbycbznl=").append(zscbycbznl);
        sb.append(", xybznl=").append(xybznl);
        sb.append(", rescueArea=").append(rescueArea);
        sb.append(", remark=").append(remark);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}